<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/7/17
 * Time: 9:34
 */

namespace app\admin\controller\media;


use app\common\controller\AdminController;
use think\app;

class Recruit extends AdminController
{
    public function __construct(App $app)
    {
        parent::__construct($app);

    }

    public function getData(){
        $this->request->filter(['strip_tags']);

        $res = [
            [
                'id'=>1,
                'content'=>'清源教育简介',
                'title'=>'清源教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'清远教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'9.9',
                'number'=>'25/199',
                'status'=>1,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'啧啧啧',
                'phone'=>15845600071,
            ],
            [
                'id'=>1,
                'content'=>'思聪教育简介',
                'title'=>'思聪教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'思聪教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'18.8',
                'number'=>'35/99',
                'status'=>1,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'哇哈哈',
                'phone'=>15945610304,
            ],
            [
                'id'=>1,
                'content'=>'巨人教育简介',
                'title'=>'巨人教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'巨人教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'68',
                'number'=>'150/200',
                'status'=>0,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'可笑',
                'phone'=>15945655555,
            ],
            [
                'id'=>1,
                'content'=>'清源教育简介',
                'title'=>'清源教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'清远教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'9.9',
                'number'=>'25/199',
                'status'=>1,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'啧啧啧',
                'phone'=>15845600071,
            ],
            [
                'id'=>1,
                'content'=>'思聪教育简介',
                'title'=>'思聪教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'思聪教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'18.8',
                'number'=>'35/99',
                'status'=>1,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'哇哈哈',
                'phone'=>15945610304,
            ],
            [
                'id'=>1,
                'content'=>'巨人教育简介',
                'title'=>'巨人教育开课了，赶紧报名！',
                'thumb'=>'http://bgt-param.oss-cn-hangzhou.aliyuncs.com/2020-04-14_1586829079_5e9517175a05a.jpg',
                'store'=>'巨人教育',
                'start_time'=>'2020-07-16',
                'end_time'=>'2020-07-30',
                'price'=>'68',
                'number'=>'150/200',
                'status'=>0,
                'state'=>1,
                'create_time'=>'2020-07-15',
                'username'=>'可笑',
                'phone'=>15945655555,
            ],
        ];

        $data = [
            'code' => 0,
            'msg' => '正在请求中...',
            'count' => 1,
            'data' => $res,
        ];
        return json($data);


    }
}